﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="manage.aspx.cs" Inherits="manage" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>用户信息管理</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
    查看用户信息
    <hr/>
    用户名： <asp:Label ID="Label1" runat="server" Text=""/>
        <br />
    <br/>
    Email: <asp:Label ID="Label2" runat="server" Text=""/>
     
        <br />
    <br/>
    专业： <asp:Label ID="Label3" runat="server" Text=""/>
        <br />
    <br/>
    性别： <asp:Label ID="Label4" runat="server" Text=""/>
    <hr/>
    &nbsp;
    <asp:Button ID="Button1" runat="server" Text="删除用户信息" onclick="Button1_Click" 
            Height="18px"/>
    <asp:Button ID="Button2" runat="server" Text="修改用户信息" onclick="Button2_Click"/>
    &nbsp;
        <hr/>
    <asp:Label ID="Label9" runat="server" Text="用户收藏列表： "/>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="Data Source=localhost;Initial Catalog=Project;Integrated Security=True"
        ProviderName="System.Data.SqlClient" SelectCommand="select [Title_Index] from [favorite] where [Name_Users]=@name" 
        ><SelectParameters>
        <asp:ControlParameter ControlID="Label1" Name="name" PropertyName="Text" Type="String" /></SelectParameters></asp:SqlDataSource>
    <hr/>
        <asp:ListView ID="ListView1" runat="server" DataSourceID="SqlDataSource1" 
            >

            <ItemTemplate>
                <td runat="server" style="background-color: #FFFBD6;color: #333333;">
                    Title_Index:
                    <a href='displayresult.aspx?path=null&title=<%# Eval("Title_Index") %>' class="link" target="_blank">
                    <asp:Label ID="Title_IndexLabel" runat="server" 
                        Text='<%# Eval("Title_Index") %>' /></a>
                    <br />
                </td>
            </ItemTemplate>
          
            <SelectedItemTemplate>
                <td runat="server" 
                    style="background-color: #FFCC66;font-weight: bold;color: #000080;">
                    Title_Index:
                    <asp:Label ID="Title_IndexLabel" runat="server" 
                        Text='<%# Eval("Title_Index") %>' />
                    <br />
                </td>
            </SelectedItemTemplate>
        </asp:ListView>
    <hr/>
    <br/>
     
    <br/>
        <br />
    <br/>
    </div>
    
    </form>
</body>
</html>
